<div class="content-table">
    <div class="ct-mn-ct">
        <h1>Conta</h1>
        <?php if(strlen($this->alert) > 0){ ?>
        <div class="alertForm"><?php echo $this->alert; ?></div>
        <?php } ?>
        <div class="frm_mc">
            <a href="#" class="edt_frm_mc">Editar Cadastro</a>
            <?php echo $this->form ; ?>
        </div>    
        
    </div>
    <div class="ct-mn-ct">
        <? /*
        <div class="ct-mn-rgt">
            <h1>Cursos Realizados</h1>
            <table id="tlist" class="tb_content">
                <thead>
                    <tr>
                        <th width="250px">Curso</th>
                        <th width="100px" style="text-align: center;">Data</th>
                        <th>Avaliação</th>
                    </tr>
                </thead>
            </table>
            <div style="overflow: auto;max-height: 200px">
                <table id="tlist" class="tb_content">
                    <tbody>
                        <?php foreach ($this->cursos as $row) { 
                            $cur = $row->findDependentRowSet("Ead_Model_DbTable_Curso");
                        ?>
                            <tr>  
                                <td width="250px"><?php echo $cur[0]['CUR_NOM']; ?></td>
                                <td width="100px" style="text-align: center;"><?php echo Datetools::invertDH_D($row->COM_DATHOR); ?></td>
                                <td width="360px"></td>
                            </tr>
                        <?php } ?>
                    </tbody>
                </table>
            </div>
        </div>
        */ ?>
         <div class="ct-mn-rgt">
            <h1>Compras</h1>
            <table id="tlist" class="tb_content">
                <thead>
                    <tr>
                        <th width="150px">Curso</th>
                        <th width="100px" style="text-align: center;">Data/Hora</th>
                        <th width="130px">Tipo Pag.</th>
                        <th width="130px">Pagamento</th>
                        <th width="120px"></th>
                    </tr>
                </thead>
            </table>
            <div style="overflow: auto;max-height: 200px;">
                <table id="tlist" class="tb_content">
                    <tbody>
                        <?php foreach ($this->compra as $row) { 
                            $cur = $row->findDependentRowSet("Ead_Model_DbTable_Curso");
                        ?>
                            <tr>  
                                <td width="150px"><?php echo $cur[0]['CUR_NOM']; ?></td>
                                <td width="100px" style="text-align: center;"><?php echo Datetools::invertDH_D($row->COM_DATHOR); ?></td>
                                <td width="130px">
                                    <?php echo compras::getformasPagamento($row->COM_TPOPAG); ?>
                                    <?php if($row->COM_VES > 0){ echo ' / '.$row->COM_VES.' x';  } ?>
                                </td>

                                <td width="130px"><?php echo $this->status[$row->COM_STATRA]; ?></td>
                                <td width="120px">
                                    <?php if($row->COM_TPOPAG == 'C' || $row->COM_TPOPAG == 'D') {
                                        $url = $this->urlbase.'/pagamento/'.($row->COM_TPOPAG == 'C' ? 'impcq':'impdp');
                                    ?>
                                    <a class="btn-bar-list" href="<?php echo $url; ?>" target="_blank">2&ring; Via</a>
                                    <?php } ?>
                                </td>
                            </tr>
                        <?php } ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
 
</div>